<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="(item,index) in list">{{item}}---{{index}}</li>
        </ul>

        <ul>
            <li v-for="(val,key,index) in obj">{{val}}---{{key}}----{{index}}</li>
        </ul>
    </div>
</body>
<script src="../../js/vue.js"></script>
<script>
    new Vue({
        el:"#app",
        data:{
            list:["a","b","c","d"],
            obj:{
                name:"damu",
                wife:"zdy",
                age:18
            }
        }
    })
</script>
</html>